using System;
using System.Collections.Generic;
using System.Text;

using SD.LLBLGen.Pro.ORMSupportClasses;
using DatabaseAdapter;
using DatabaseGeneric;
using DatabaseGeneric.FactoryClasses;
using DatabaseGeneric.EntityClasses;
using DatabaseGeneric.RelationClasses;
using DatabaseGeneric.HelperClasses;

namespace Interfaces
{
    public interface ISanPham
    {
        EntityCollection<SanPhamEntity> FetchCollection();
        EntityCollection<SanPhamEntity> FetchCollection(ChungLoaiSanPhamEntity currentEntityChungLoaiSanPham);
        EntityCollection<SanPhamEntity> FetchCollection(string criteria, int option);
        SanPhamEntity FetchEntity(SanPhamEntity currentEntitySanPham);
        int SaveCollection(EntityCollection<SanPhamEntity> currentCollectionSanPham);
        bool SaveEntity(SanPhamEntity currentEntitySanPham);
        int DeleteCollection(EntityCollection<SanPhamEntity> currentCollectionSanPham);
        bool DeleteEntity(SanPhamEntity currentEntitySanPham);
        System.Data.DataTable Report(ChungLoaiSanPhamEntity currentEntityChungLoaiSanPham);
    }
}
